cmake_minimum_required (VERSION 3.8)

project ("ThreadPool")

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# add_library(concurrentqueue INTERFACE)
# 
# target_include_directories(concurrentqueue
#   INTERFACE
#     ${CMAKE_CURRENT_SOURCE_DIR}
# )
# 
# add_executable (ThreadPool
#   "main.cpp" "threadpool.h" "threadpool.cpp" "traits_hub.h" "task_base.h" "thread_task.h")
# 
# target_link_libraries(ThreadPool
#   concurrentqueue
# )

add_executable (ThreadPool
  "main.cpp"
 "thread_pool.h" "mpmc_queue.h" "thread_pool.cpp" "define.h" "thread_pool_1.h" "thread_pool_1.cpp" "utils.h")